﻿using System;
using System.Collections.Generic;
using System.Text;
using Newtonsoft.Json;

namespace AutoAllocService.Map.Models
{
    public class DistanceEntity
    {
        [JsonProperty("entity")]
        public string Entity { get; set; }

        [JsonProperty("distance")]
        public DistanceValue Distance { get; set; }

        [JsonProperty("duration")]
        public DistanceValue Duration { get; set; }
    }

    public class DistanceResult
    {
        [JsonProperty("status")]
        public int Status { get; set; }

        [JsonProperty("result")]
        public List<DistanceEntity> Result { get; set; }

        [JsonProperty("message")]
        public string Message { get; set; }
    }
}
